import BaseService from "../BaseService";

class UcUserService extends BaseService {
  queryById(params) {
    return this.getAction(this.getModulePath() + `/queryById`, params);
  }
  queryBatchByIds(params) {
    return this.postAction(this.getModulePath() + `/queryBatchByIds`, params);
  }
  queryPageAuthor(params) {
    return this.getAction(
      this.getModulePath() + `/queryAppRelationPage`,
      params
    );
  }
  queryPage(params) {
    return this.getAction(this.getModulePath() + `/queryPage`, params);
  }

  /**
   * 描述:获取host地址
   * @returns {string}
   */
  getBaseUrl() {
    return this.serviceConfig.getBaseUrl("oauth");
  }
  /**
   * 描述:获取模块地址
   * @returns {string}
   */
  getModulePath() {
    return "/publics/user";
  }
}

export default new UcUserService();
